<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class MemberCardOrder extends Model
{
    protected $fillable = [
        'tenant_id',
        'user_id',
        'member_card_id',
        'order_sn',
        'transaction_id',
        'openid',
        'total_fee',
        'is_paid',
        'paid_time',
        'body',
    ];

    public function user()
    {
        return $this->belongsTo(User::class);
    }

    public function memberCard()
    {
        return $this->belongsTo(MemberCard::class);
    }
}
